package com.hutao.sso.service.impl.medicalMainstay;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hutao.sso.dataSource.TargetDataSource;
import com.hutao.sso.mapper.medicalMainstay.MedicalMainstayMapper;
import com.hutao.sso.pojo.MedicalMainstay.MedicalMainstay;
import com.hutao.sso.service.medicalMainstay.MedicalMainstayService;

@Transactional
@Service
public class MedicalMainstayServiceImpl implements MedicalMainstayService{
	
	@Autowired
	private MedicalMainstayMapper medicalMainstayMapper;

	@TargetDataSource(name = "ds1")
	@Transactional(readOnly = true)
	@Override
	public MedicalMainstay findMedicalMainstayByName(int id) {
		return medicalMainstayMapper.findMedicalMainstayByName(id);
	}

}
